package com.kgc.scd.service;

import com.kgc.scd.bean.HotKey;
import com.kgc.scd.util.RequestResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * Created On : 2022/6/17.
 * <p>
 * Author     : hi
 * <p>
 * Description: HotKeyService
 */
@FeignClient(value = "blmall-server-wzy-8106")
public interface HotKeyService {

    /**
     * @param :
     * @return :
     * @author : hi
     * @date : 2022/6/17
     * @description : 添加热词
     */
    @PostMapping("/addHotKey")
     RequestResult<HotKey> addHotKey (@RequestParam("hotkeyValue") String hotkeyValue);

    /**
     * @author : hi
     * @date   : 2022/6/14
     * @param  : [java.lang.String]
     * @return : com.kgc.scd.util.RequestResult<com.kgc.scd.bean.HotKey>
     * @description :删除热词
     */

    @PostMapping("/delHotKey")
     RequestResult<HotKey> delHotKey (@RequestParam("hotkeyValue") String hotkeyValue);

    /**
     * @author : hi
     * @date   : 2022/6/14
     * @param  : [java.lang.String]
     * @return : com.kgc.scd.util.RequestResult<com.kgc.scd.bean.HotKey>
     * @description :热词展示
     */
    @PostMapping("/HotKeyList")
     RequestResult<List<HotKey>> HotKeyList (@RequestParam("HotkeyKey") String HotkeyKey);

    @PostMapping("/tenHotKey")
    RequestResult<Object> tenHotKey();
}
